import type { Component } from 'vue'
import type { ItemType } from 'ant-design-vue/es/menu/hooks/useItems'

// 扩展 Ant Design Vue 的菜单项类型
export interface MenuConfig extends Omit<ItemType, 'icon'> {
  key: string
  label: string
  icon?: () => Component
  path?: string
  children?: MenuConfig[]
}